package Vue;




import java.util.Random;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Taupe
 */

public class Tool {
    
    private int max;
    private int min;
    
    public static int monRandom(int max, int min)
    {
        if(max<min)
        {
            int tmp = max;
            max = min;
            min = tmp;
        }
        Random rand = new Random();
        int nombreAleatoire = rand.nextInt(max - min + 1) + min;
        return nombreAleatoire;
              
    }
    
}
